﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true"
  Inherits="Kiiro.SiteDefinition.ProjectPages.Team, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="SP" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="v2" TagName="Pager" Src="~/_controltemplates/Kiiro/Pager.ascx" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <asp:Panel ID="pnlPanel" runat="server" CssClass="panel">
            <div class="panel-wrap">
              <div class="panel-title" runat="server" id="columnHeaders">
                <table class="table-team">
                  <tr>
                    <th class="image">
                    </th>
                    <th class="name">
                      <span>
                        <p class="sort">
                          <asp:LinkButton ID="lbNameSort" runat="server" OnClick="SortBy_Click" CommandArgument="Name">
                                            Name</asp:LinkButton><asp:Literal ID="nameSort" runat="server" /></p>
                      </span>
                    </th>
                    <th class="contact">
                      Contact
                    </th>
                    <th class="role">
                      <p class="sort">
                        <asp:LinkButton ID="lbProjectrole" runat="server" OnClick="SortBy_Click" CommandArgument="ProjectRole">
                                            Role</asp:LinkButton><asp:Literal ID="roleSort" runat="server" /></p>
                      </span>
                    </th>
                    <th class="pm">
                      <p class="sort">
                        <asp:LinkButton ID="lbPM" runat="server" OnClick="SortBy_Click" CommandArgument="PM">
                                            Project Manager</asp:LinkButton><asp:Literal ID="pmSort" runat="server" /></p>
                      </span>
                    </th>
                  </tr>
                </table>
              </div>
              <div class="table">
                <table class="table-team">
                  <asp:Repeater ID="rptTeam" runat="server" OnItemDataBound="rptTeam_ItemDataBound">
                    <ItemTemplate>
                      <tr id="trTeam" runat="server">
                        <td class="image">
                          <asp:HyperLink ID="lnkImageDisplayUser" runat="server">
                            <asp:Image ID="imgPerson" runat="server" CssClass="userImgSmall" />
                          </asp:HyperLink>
                        </td>
                        <td class="name">
                          <h2>
                            <asp:HyperLink ID="lnkDisplayUserName" runat="server" /></h2>
                        </td>
                        <td class="contact">
                          <span class="highlight">Phone: </span>
                          <asp:Label ID="txtPhone" runat="server" />
                          <br />
                          <span class="highlight">Email: </span>
                          <asp:HyperLink ID="lnkEmail" runat="server" />
                          <br />
                          <span class="highlight">IM: </span>
                          <asp:Label ID="txtIM" runat="server" />
                        </td>
                        <td class="role">
                          <asp:Label ID="txtProjectRole" runat="server" />
                        </td>
                        <td class="pm">
                          <asp:Label ID="txtProjectManager" runat="server" />
                        </td>
                        <td class="edit">
                          <asp:HyperLink ID="lnkEdit" runat="server" Text="Edit" Visible="false" /><br />
                          <asp:LinkButton ID="btnDelete" runat="server" Text="Delete" Visible="true" OnClick="btnDelete_Click"
                            OnClientClick="javascript: return confirm('Are you sure you want to delete the team member from this project team?');" />
                        </td>
                      </tr>
                    </ItemTemplate>
                  </asp:Repeater>
                </table>
              </div>
            </div>
          </asp:Panel>
          <v2:Pager id="v2Pager" runat="server" />
        </div>
      </div>
    </div>
  </div>
</asp:Content>
